WPS Office.apk(点击下载) / u.java


package com.appsflyer;

import android.content.pm.PackageManager;
import android.os.Build;
import com.iflytek.cloud.SpeechEvent;
import java.text.SimpleDateFormat;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* access modifiers changed from: package-private */
public final class u {

    /* renamed from: ˊ  reason: contains not printable characters */
    private static u f218;

    /* renamed from: ʻ  reason: contains not printable characters */
    private final String f219;

    /* renamed from: ʻॱ  reason: contains not printable characters */
    private final String f220;

    /* renamed from: ʼ  reason: contains not printable characters */
    private final String f221;

    /* renamed from: ʼॱ  reason: contains not printable characters */
    private final String f222;

    /* renamed from: ʽ  reason: contains not printable characters */
    private final String f223;

    /* renamed from: ʽॱ  reason: contains not printable characters */
    private final String f224;

    /* renamed from: ʾ  reason: contains not printable characters */
    private final String f225;

    /* renamed from: ʿ  reason: contains not printable characters */
    private final String f226;

    /* renamed from: ˈ  reason: contains not printable characters */
    private final String f227;

    /* renamed from: ˉ  reason: contains not printable characters */
    private JSONObject f228;

    /* renamed from: ˊˊ  reason: contains not printable characters */
    private final String f229;

    /* renamed from: ˊˋ  reason: contains not printable characters */
    private final String f230;

    /* renamed from: ˊॱ  reason: contains not printable characters */
    private final String f231;

    /* renamed from: ˊᐝ  reason: contains not printable characters */
    private int f232;

    /* renamed from: ˋ  reason: contains not printable characters */
    private final String f233;

    /* renamed from: ˋˊ  reason: contains not printable characters */
    private JSONArray f234;

    /* renamed from: ˋॱ  reason: contains not printable characters */
    private final String f235;

    /* renamed from: ˋᐝ  reason: contains not printable characters */
    private boolean f236;

    /* renamed from: ˍ  reason: contains not printable characters */
    private String f237;

    /* renamed from: ˎ  reason: contains not printable characters */
    private boolean f238;

    /* renamed from: ˏ  reason: contains not printable characters */
    private boolean f239;

    /* renamed from: ˏॱ  reason: contains not printable characters */
    private final String f240;

    /* renamed from: ͺ  reason: contains not printable characters */
    private final String f241;

    /* renamed from: ॱ  reason: contains not printable characters */
    private final String f242;

    /* renamed from: ॱˊ  reason: contains not printable characters */
    private final String f243;

    /* renamed from: ॱˋ  reason: contains not printable characters */
    private final String f244;

    /* renamed from: ॱˎ  reason: contains not printable characters */
    private final String f245;

    /* renamed from: ॱॱ  reason: contains not printable characters */
    private final String f246;

    /* renamed from: ॱᐝ  reason: contains not printable characters */
    private final String f247;

    /* renamed from: ᐝ  reason: contains not printable characters */
    private final String f248;

    /* renamed from: ᐝॱ  reason: contains not printable characters */
    private final String f249;

    private u() {
        this.f238 = true;
        this.f239 = true;
        this.f233 = "brand";
        this.f242 = "model";
        this.f219 = "platform";
        this.f221 = "platform_version";
        this.f246 = ServerParameters.ADVERTISING_ID_PARAM;
        this.f223 = "imei";
        this.f248 = "android_id";
        this.f241 = "sdk_version";
        this.f235 = "devkey";
        this.f240 = "originalAppsFlyerId";
        this.f231 = "uid";
        this.f243 = "app_id";
        this.f244 = "app_version";
        this.f245 = AppsFlyerProperties.CHANNEL;
        this.f249 = "preInstall";
        this.f247 = SpeechEvent.KEY_EVENT_RECORD_DATA;
        this.f220 = "r_debugging_off";
        this.f227 = "r_debugging_on";
        this.f226 = "public_api_call";
        this.f222 = "exception";
        this.f224 = "server_request";
        this.f225 = "server_response";
        this.f229 = "yyyy-MM-dd HH:mm:ssZ";
        this.f230 = "MM-dd HH:mm:ss.SSS";
        this.f232 = 0;
        this.f237 = "-1";
        this.f234 = new JSONArray();
        this.f232 = 0;
        this.f236 = false;
    }

    /* JADX WARNING: Exception block dominator not found, dom blocks: [] */
    /* renamed from: ʽ  reason: contains not printable characters */
    private synchronized String m200() {
        String str;
        str = null;
        this.f228.put(SpeechEvent.KEY_EVENT_RECORD_DATA, this.f234);
        str = this.f228.toString();
        m208();
        return str;
    }

    /* JADX WARNING: Exception block dominator not found, dom blocks: [] */
    /* renamed from: ˊ  reason: contains not printable characters */
    private synchronized void m201(String str, String str2, String str3, String str4) {
        this.f228.put("sdk_version", str);
        if (str2 != null && str2.length() > 0) {
            this.f228.put("devkey", str2);
        }
        if (str3 != null && str3.length() > 0) {
            this.f228.put("originalAppsFlyerId", str3);
        }
        if (str4 != null && str4.length() > 0) {
            this.f228.put("uid", str4);
        }
    }

    /* JADX WARNING: Exception block dominator not found, dom blocks: [] */
    /* renamed from: ˊ  reason: contains not printable characters */
    private synchronized void m202(String str, String str2, String str3, String str4, String str5, String str6) {
        this.f228.put("brand", str);
        this.f228.put("model", str2);
        this.f228.put("platform", "Android");
        this.f228.put("platform_version", str3);
        if (str4 != null && str4.length() > 0) {
            this.f228.put(ServerParameters.ADVERTISING_ID_PARAM, str4);
        }
        if (str5 != null && str5.length() > 0) {
            this.f228.put("imei", str5);
        }
        if (str6 != null && str6.length() > 0) {
            this.f228.put("android_id", str6);
        }
    }

    /* renamed from: ˊ  reason: contains not printable characters */
    private synchronized void m203(String str, String str2, String... strArr) {
        boolean z = true;
        synchronized (this) {
            if (!this.f239 || (!this.f238 && !this.f236)) {
                z = false;
            }
            if (z && this.f232 < 98304) {
                try {
                    long currentTimeMillis = System.currentTimeMillis();
                    String str3 = "";
                    if (strArr.length > 0) {
                        StringBuilder sb = new StringBuilder();
                        for (int length = strArr.length - 1; length > 0; length--) {
                            sb.append(strArr[length]).append(", ");
                        }
                        sb.append(strArr[0]);
                        str3 = sb.toString();
                    }
                    String format = new SimpleDateFormat("MM-dd HH:mm:ss.SSS", Locale.ENGLISH).format(Long.valueOf(currentTimeMillis));
                    String format2 = str != null ? String.format("%18s %5s _/%s [%s] %s %s", format, Long.valueOf(Thread.currentThread().getId()), AppsFlyerLib.LOG_TAG, str, str2, str3) : String.format("%18s %5s %s/%s %s", format, Long.valueOf(Thread.currentThread().getId()), str2, AppsFlyerLib.LOG_TAG, str3);
                    this.f234.put(format2);
                    this.f232 = format2.getBytes().length + this.f232;
                } catch (Throwable th) {
                }
            }
        }
    }

    /* renamed from: ˎ  reason: contains not printable characters */
    static u m204() {
        if (f218 == null) {
            f218 = new u();
        }
        return f218;
    }

    /* renamed from: ˏ  reason: contains not printable characters */
    static void m205(String str, PackageManager packageManager) {
        try {
            if (f218 == null) {
                f218 = new u();
            }
            f218.m206(str, packageManager);
            if (f218 == null) {
                f218 = new u();
            }
            String r0 = f218.m200();
            n nVar = new n(null, AppsFlyerLib.getInstance().isTrackingStopped());
            nVar.f177 = r0;
            nVar.m159();
            nVar.execute(new StringBuilder().append(ServerConfigHandler.getUrl("https://monitorsdk.%s/remote-debug?app_id=")).append(str).toString());
        } catch (Throwable th) {
        }
    }

    /* renamed from: ॱ  reason: contains not printable characters */
    private synchronized void m206(String str, PackageManager packageManager) {
        AppsFlyerProperties instance = AppsFlyerProperties.getInstance();
        AppsFlyerLib instance2 = AppsFlyerLib.getInstance();
        String string = instance.getString("remote_debug_static_data");
        if (string != null) {
            try {
                this.f228 = new JSONObject(string);
            } catch (Throwable th) {
            }
        } else {
            this.f228 = new JSONObject();
            m202(Build.BRAND, Build.MODEL, Build.VERSION.RELEASE, instance.getString(ServerParameters.ADVERTISING_ID_PARAM), instance2.f36, instance2.f43);
            m201("4.8.12.386", instance.getString(AppsFlyerProperties.AF_KEY), instance.getString("KSAppsFlyerId"), instance.getString("uid"));
            try {
                int i = packageManager.getPackageInfo(str, 0).versionCode;
                m207(str, String.valueOf(i), instance.getString(AppsFlyerProperties.CHANNEL), instance.getString("preInstallName"));
            } catch (Throwable th2) {
            }
            instance.set("remote_debug_static_data", this.f228.toString());
        }
        try {
            this.f228.put("launch_counter", this.f237);
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    /* JADX WARNING: Exception block dominator not found, dom blocks: [] */
    /* renamed from: ॱ  reason: contains not printable characters */
    private synchronized void m207(String str, String str2, String str3, String str4) {
        if (str != null) {
            if (str.length() > 0) {
                this.f228.put("app_id", str);
            }
        }
        if (str2 != null && str2.length() > 0) {
            this.f228.put("app_version", str2);
        }
        if (str3 != null && str3.length() > 0) {
            this.f228.put(AppsFlyerProperties.CHANNEL, str3);
        }
        if (str4 != null && str4.length() > 0) {
            this.f228.put("preInstall", str4);
        }
    }

    /* renamed from: ॱॱ  reason: contains not printable characters */
    private synchronized void m208() {
        this.f234 = null;
        this.f234 = new JSONArray();
        this.f232 = 0;
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ʻ  reason: contains not printable characters */
    public final boolean m209() {
        return this.f236;
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ʼ  reason: contains not printable characters */
    public final void m210() {
        this.f239 = false;
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˊ  reason: contains not printable characters */
    public final synchronized void m211() {
        this.f238 = false;
        m208();
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˊ  reason: contains not printable characters */
    public final synchronized void m212(String str) {
        this.f237 = str;
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˊ  reason: contains not printable characters */
    public final void m213(String str, String... strArr) {
        m203("public_api_call", str, strArr);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˋ  reason: contains not printable characters */
    public final synchronized void m214() {
        this.f228 = null;
        this.f234 = null;
        f218 = null;
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˎ  reason: contains not printable characters */
    public final void m215(String str, int i, String str2) {
        m203("server_response", str, String.valueOf(i), str2);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˎ  reason: contains not printable characters */
    public final void m216(String str, String str2) {
        m203(null, str, str2);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˎ  reason: contains not printable characters */
    public final void m217(Throwable th) {
        String[] strArr;
        Throwable cause = th.getCause();
        String simpleName = th.getClass().getSimpleName();
        String message = cause == null ? th.getMessage() : cause.getMessage();
        StackTraceElement[] stackTrace = cause == null ? th.getStackTrace() : cause.getStackTrace();
        if (stackTrace == null) {
            strArr = new String[]{message};
        } else {
            String[] strArr2 = new String[(stackTrace.length + 1)];
            strArr2[0] = message;
            for (int i = 1; i < stackTrace.length; i++) {
                strArr2[i] = stackTrace[i].toString();
            }
            strArr = strArr2;
        }
        m203("exception", simpleName, strArr);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˏ  reason: contains not printable characters */
    public final synchronized void m218() {
        this.f236 = true;
        m203("r_debugging_on", new SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ", Locale.ENGLISH).format(Long.valueOf(System.currentTimeMillis())), new String[0]);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ˏ  reason: contains not printable characters */
    public final void m219(String str, String str2) {
        m203("server_request", str, str2);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ॱ  reason: contains not printable characters */
    public final synchronized void m220() {
        m203("r_debugging_off", new SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ", Locale.ENGLISH).format(Long.valueOf(System.currentTimeMillis())), new String[0]);
        this.f236 = false;
        this.f238 = false;
    }
}